package com.ruimei.util;
import java.util.HashMap;
import java.util.Map;

public class ifUtil {
    public static Map<String,Object> YesOrNo(Integer insertAttendance){
        Map<String, Object> map = new HashMap();
        if (insertAttendance.intValue() == 1)
        {
            map.put("status", Boolean.valueOf(true));
            map.put("message", "提交成功");
        }
        else
        {
            map.put("status", Boolean.valueOf(false));
            map.put("message", "提交失败");
        }
        return map;
    }
}
